﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using System.ComponentModel.Composition.Hosting;


namespace EIA.SLClient.ProjectManage.Basic
{
    [ModuleExport(typeof(BasicModule))]
    public class BasicModule : IModule
    {
        [Import]
        public IRegionManager RegionManager;

        public void Initialize()
        {
            /// 加载快速查询
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QuickQueryRegion, typeof(ScheduleNormalView));
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QuickQueryRegion, typeof(ScheduleApproachView));
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QuickQueryRegion, typeof(ScheduleExpireView));
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QuickQueryRegion, typeof(Wait4ApproveView));
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QuickQueryRegion, typeof(NotQuickQueryView));
            /// 加载工具
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.ToolbarRegion, typeof(ToolProjectCreateView));
            /// 加载搜索框
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.QueryRegion, typeof(QueryBoxView));
            /// 加载项目列表
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.ProjectListRegion, typeof(ProjectListView));

            /// 加载项目详情 - 标题栏
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.ProjectTitleRegion, typeof(ProjectTitleView));
            /// 加载项目详情 - 基本信息
            RegionManager.RegisterViewWithRegion(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.ProjectToolbarRegion, typeof(ProjectInfoNavgationItemView));
        }
    }
}
